package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.sys.LoginDTO;
import com.atguigu.spzx.model.dto.sys.SysUserDTO;
import com.atguigu.spzx.model.entity.sys.SysUser;
import com.atguigu.spzx.model.vo.sys.LoginVO;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface SysUserService {
    LoginVO login(LoginDTO loginDTO);

    Map<String, Object> generateCodeImg();

    Map<String, Object> getUserInfo();

    void logout(String token);

    PageInfo<SysUser> list(Integer pageNum, Integer pageSize, SysUserDTO sysUserDTO);

    void save(SysUser sysUser);

    void deleteByIds(List<Long> asList);

    SysUser getById(Long id);

    void update(SysUser sysUser);

    List<SysUser> list();

    void assignRoles2User(Long id, List<Long> roledIs);
}
